<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>document</title>
  <script type="text/javascript">
    window.onload = function(){
      var Body = document.body;
      function time(){
        var myTime = new Date();
        var Year = myTime.getFullYear();
        var Mon = myTime.getMonth() + 1;
        var Day = myTime.getDate();
        var Hours = myTime.getHours();
        var Min = myTime.getMinutes();
        var Sec = myTime.getSeconds();
        var Week = myTime.getDay();
        var str = '';
        switch(Week){
          case 0 : Week = '星期日'; break;
          case 1 : Week = '星期一'; break;
          case 2 : Week = '星期二'; break;
          case 3 : Week = '星期三'; break;
          case 4 : Week = '星期四'; break;
          case 5 : Week = '星期五'; break;
          case 6 : Week = '星期六'; break;
        }
        str = Year + '年' + Mon + '月' + Day + '日' + Two(Hours) + ':' + Two(Min) + ':' + Two(Sec) + Week;
        Body.innerHTML = str;
      }
      time();
      setInterval(time,1000);
      function Two(n){
        return n < 10 ? '0' + n : '' + n;
      }
    }
  </script>
</head>
<body style ="font-size:60px;text-align:center">
  
</body>
</html>